$("#submission").click(function () {
    var id = $("#customerId").val();
    var caseId = $("#caseId").val();
    var statusic=$('input:radio[name="statusic"]:checked').val();
    if(statusic==null){
        alert("请选择项目是否结束!");
        return ;
    }
    $.ajax({
        url: Feng.ctxPath +"/doctorLooked/update_doctor_statusic",
        type:'POST',
        data:{
            caseId:caseId,
            statusic:statusic
        },
        success:function (data) {
            if (confirm("是否去添加随访")) {
                Feng.success('操作成功!');
                window.parent.parent.location.href = Feng.ctxPath + '/doctorDetails/doctor_seeDiagnosis/' + id + '/' + 3;
                window.parent.parent.parent.DoctorLooked.search();
                parent.layer.close(parent.layer.getFrameIndex(window.name))
            } else {
                Feng.success('操作成功!');
                window.parent.parent.location.href = Feng.ctxPath + '/doctorDetails/doctor_seeDiagnosis/' + id + '/' + 1;
                window.parent.parent.parent.DoctorLooked.search();
                parent.layer.close(parent.layer.getFrameIndex(window.name))
            }
        },
        error:function (data) {alert("没有权限，请联系系统管理员！");}
    })
});

$("#parentLayerClose").click(function () {
    var caseId = $("#caseId").val();
    $.ajax({
        url: Feng.ctxPath +"/doctorLooked/deleteCases",
        type:'POST',
        data:{
            caseId:caseId
        },
        success:function (data) {parent.layer.close(parent.layer.getFrameIndex(window.name));},
        error:function (data) {alert("没有权限，请联系系统管理员！");}
    })
});